package cn.gok.studentsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("student")
public class Student implements Serializable {
    @TableId(value = "sid",type = IdType.AUTO)
    private long sid;
    private String sname;
    private Integer age;
    private String sex;
    private Long snum;
    @Version
    private Integer version;
    @TableLogic
    private String delted;
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    @TableField(fill = FieldFill.INSERT)
    private Date update_time;
    private Long cid;

}
